package com.sinocare.system.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sinocare.common.entity.Menu;
import com.sinocare.system.mapper.MenuMapper;
import com.sinocare.system.service.MenuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService {
    @Resource
    private MenuMapper menuMapper;


    @Override
    public int updateMenu(Menu menu) {
        return menuMapper.updateMenu(menu);
    }

    @Override
    public int delete(Integer menuId) {
        return menuMapper.delete(menuId);
    }
}
